<?php
require ('.\..\smarty_inc.php');

$title = 'this is admin file';

$smarty->assign('userName', $_GET['userName']);
$smarty->assign('name', $title);
$smarty->display('admin_index.htm');
//scan directory
$module_path = $_SERVER['DOCUMENT_ROOT'].'/Exam_Heart/module';
$dir = dir($module_path);

while (false !== ($entry = $dir->read())) {
//   echo $entry.'\n';
}
?>